package com.itheima.ServiceImpl;

import com.itheima.feign.FeignService;
import com.itheima.pojo.User;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

@Component
public class FeignServiceImpl implements FeignService {
    @Override
    public User queryById(Long id) {
        User user=new User();
        user.setId(id);
        user.setName("你有毒，别再来了");
        return user;

    }
}
